<template>
  <div>
    <el-container style="height: 100%">
      <!--左侧侧边栏-->
      <el-aside width="auto">
        <common-aside></common-aside>
      </el-aside>
      <!--中间主体部分-->
      <el-container>
        <!--头部-->
        <el-header width="auto">
          <common-header></common-header>
        </el-header>
        <!--主页-->
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
    <el-backtop><i class="el-icon-top"></i></el-backtop>
  </div>

</template>


<script>
import CommonAside from "@/components/CommonAside";
import CommonHeader from "@/components/CommonHeader";
import CommonBody from "@/views/choose/AllBody";
import CommonBacktop from "../components/CommonBacktop";

export default {
  name: "Main",
  components: { CommonAside, CommonHeader, CommonBody, CommonBacktop }
};
</script>

<!--scoped只对当前页面有效-->
<style scoped>
.el-header {
  background: #333;
}

.el-main {
  padding-top: 0;
}

/*解决闪烁问题，否则会先出现{{message}}，才会渲染数据*/
[v-clock] {
  display: none;
}
</style>